package com.woniu.cq.mallproduct.mapper;

import com.woniu.cq.mallproduct.domain.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author daniel
 * @since 2020-09-19
 */
public interface ProductMapper extends BaseMapper<Product> {
    List<Product> getLikeProduct(@Param("name") String name, @Param("info") String info);
    @Select("select * from tb_product")
    List<Product> getProducts();
}
